package com.zhenhao.xsq.db.green;

import org.greenrobot.greendao.annotation.Entity;
import org.greenrobot.greendao.annotation.Generated;
import org.greenrobot.greendao.annotation.Id;

/**
 * 用于切换账号登录的实体类
 * Created by William on 2019/5/15.
 */
@Entity
public class UserLoginInfo {
    @Id
    private Long id;
    private String username;//手机号(登录用,显示用
    private boolean isLogin;//是否当前登录账号的标志
    private String projectNumber;//项目编号(登录用
    private String password;//密码(登录用
    private String projectName;//项目名(显示用

    @Generated(hash = 216219422)
    public UserLoginInfo(Long id, String username, boolean isLogin,
                         String projectNumber, String password, String projectName) {
        this.id = id;
        this.username = username;
        this.isLogin = isLogin;
        this.projectNumber = projectNumber;
        this.password = password;
        this.projectName = projectName;
    }

    @Generated(hash = 1926542730)
    public UserLoginInfo() {
    }

    public Long getId() {
        return this.id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getUsername() {
        return this.username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public boolean getIsLogin() {
        return this.isLogin;
    }

    public void setIsLogin(boolean isLogin) {
        this.isLogin = isLogin;
    }

    public String getProjectNumber() {
        return this.projectNumber;
    }

    public void setProjectNumber(String projectNumber) {
        this.projectNumber = projectNumber;
    }

    public String getPassword() {
        return this.password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getProjectName() {
        return this.projectName;
    }

    public void setProjectName(String projectName) {
        this.projectName = projectName;
    }

    @Override
    public String toString() {
        return "UserLoginInfo{" +
                "id=" + id +
                ", username='" + username + '\'' +
                ", isLogin=" + isLogin +
                ", projectNumber='" + projectNumber + '\'' +
                ", password='" + password + '\'' +
                ", projectName='" + projectName + '\'' +
                '}';
    }
}
